package com.csbc.arithmetic.coupon;

import java.io.FileInputStream;
import java.math.BigDecimal;

public class CouponPromotion implements BasePromotion {

    private final static Integer FILL_HUNDRED = 100;

    private final static Integer Fill_HUNRED_REDUCE = 10;

    @Override
    public BigDecimal doPromotion(BigDecimal context) {

    if(context.compareTo(BigDecimal.valueOf(FILL_HUNDRED))>=0){
        context = context.subtract(BigDecimal.valueOf(Fill_HUNRED_REDUCE));
    }
    return context;
    }
}
